home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13795 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  744 b 

  1. Path: airdmhor.gen.nz!not-for-mail
  2. From: gumboot@airdmhor.gen.nz (Simon Hosie)
  3. Newsgroups: comp.lang.c
  4. Subject: Largest effective integer.
  5. Date: 10 Apr 1996 05:07:42 +1200
  6. Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
  7. Message-ID: <4ke5gu$o7u@airdmhor.gen.nz>
  8. X-Newsreader: TIN [version 1.2 PL2]
  9.  
  10.   What's the highest unsigned value you can safely represent without losing
  11. integer accuracy using an ANSI defined type?  For example you can get as
  12. high as 4294967295 (32 bits) using an unsigned long, or 2251800000000000ish
  13. (51 bits) using an IEEE 8 byte real, but I don't know what the minimum
  14. limits are for reals.
  15.  
  16.   Basically I want a really big unsigned int and I don't care what format
  17. it's in or how slow it is.
  18.